addition of algebraic fractions